class HomeController < ApplicationController
  def index
    cookies[:ip] = {:value =>request.remote_ip,:expires => 1.year.from_now}
    @news = News.paginate(:all, :per_page => 1, :page => params[:page], :conditions =>["published=?",true])
  end
end
